<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: NdefNfcStoreLinkRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NdefNfcStoreLinkRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NdefNfcStoreLinkRecord" --><!-- doxytag: inherits="NdefNfcSmartUriRecord" -->
<p>Create an app store link to download the app, either direct or for multiple stores using the nfcinteractor.com web service.  
 <a href="class_ndef_nfc_store_link_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ndefnfcstorelinkrecord_8h_source.html">ndefnfcstorelinkrecord.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for NdefNfcStoreLinkRecord:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ndef_nfc_store_link_record.png" usemap="#NdefNfcStoreLinkRecord_map" alt=""/>
  <map id="NdefNfcStoreLinkRecord_map" name="NdefNfcStoreLinkRecord_map">
<area href="class_ndef_nfc_smart_uri_record.html" title="Smart class that uses the smallest possible NDEF record type for storing the requested information - ..." alt="NdefNfcSmartUriRecord" shape="rect" coords="0,56,153,80"/>
<area href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ..." alt="NdefNfcSpRecord" shape="rect" coords="0,0,153,24"/>
</map>
 </div></div>

<p><a href="class_ndef_nfc_store_link_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> { <br/>
&#160;&#160;<b>StoreNokia</b> =  0, 
<b>StoreSymbian</b>, 
<b>StoreMeeGoHarmattan</b>, 
<b>StoreSeries40</b>, 
<br/>
&#160;&#160;<b>StoreWindowsPhone</b>, 
<b>StoreAndroid</b>, 
<b>StoreiOS</b>, 
<b>StoreBlackberry</b>, 
<br/>
&#160;&#160;<b>StoreCustomName</b>
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#aadc88e8e3c200d9a9550fbbd2a984ec9">NdefNfcStoreLinkRecord</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty App Store Link record.  <a href="#aadc88e8e3c200d9a9550fbbd2a984ec9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a374b5798a44b930e5dd4e2ec9ab304b1"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::NdefNfcStoreLinkRecord" ref="a374b5798a44b930e5dd4e2ec9ab304b1" args="(const QUrl &amp;webServiceUrl)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#a374b5798a44b930e5dd4e2ec9ab304b1">NdefNfcStoreLinkRecord</a> (const QUrl &amp;webServiceUrl)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty App Store Link record, using the specified web service for multi-store links. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QUrl&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#a527400f58827b59bf4956c87594010a6">webServiceUrl</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current web service URL.  <a href="#a527400f58827b59bf4956c87594010a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#a1cba6465d662b8c3ac8e1d84153bc7d2">setWebServiceUrl</a> (const QUrl &amp;webServiceUrl)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the web service URL.  <a href="#a1cba6465d662b8c3ac8e1d84153bc7d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#a6caa684ab9b06bf96e35b82d0325864f">addAppId</a> (const <a class="el" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> appStore, const QString &amp;appId)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an app id for a specified app store.  <a href="#a6caa684ab9b06bf96e35b82d0325864f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcf1e422961b1bd38a59500fb2a78af4"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::appId" ref="afcf1e422961b1bd38a59500fb2a78af4" args="(AppStore appStore) const " -->
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_store_link_record.html#afcf1e422961b1bd38a59500fb2a78af4">appId</a> (<a class="el" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> appStore) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the app id for the specified app store, if it has already been set. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Create an app store link to download the app, either direct or for multiple stores using the nfcinteractor.com web service. </p>
<p>Tags to download an app are useful in many cases, either as the sole record on a tag, or in combination with a custom record in a single NDEF message. This would then allow your app to auto-start when already installed on the phone (through the custom record your app is registered for), or if the app isn't installed, the phone will ignore the record and instead parse this store record and send the user to download the app.</p>
<p>IF you only add the app ID for a single app store, the class will write the direct store link to the tag. This causes some phones to directly open the store (e.g., on the Nokia N9).</p>
<p>If you want your tag to work for multiple platforms, you can use the web service at nfcinteractor.com to pass multiple ids for different platforms. The web service will then detect the operating system of the phone, and redirect it to the correct app store link.</p>
<p>The web service also supports specifying a name instead of passing different IDs, to make further maintenance easier (StoreCustomName). See the instructions at nfcinteractor.com how to host the service, in order to add your own names to the script. You can change the URL of the webservice using <a class="el" href="class_ndef_nfc_store_link_record.html#a1cba6465d662b8c3ac8e1d84153bc7d2" title="Set the web service URL.">setWebServiceUrl()</a> or during construction of the class.</p>
<p>As this class is based on the Smart URI base class, the payload is formatted as a URI record initially. When first adding Smart Poster information (like a title), the payload instantly transforms into a Smart Poster.</p>
<dl class="version"><dt><b>Version:</b></dt><dd>1.0.0 </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a860405a03d4ce60fd624c7b0a87f509e"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::AppStore" ref="a860405a03d4ce60fd624c7b0a87f509e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">NdefNfcStoreLinkRecord::AppStore</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Which app store to link to. </p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aadc88e8e3c200d9a9550fbbd2a984ec9"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::NdefNfcStoreLinkRecord" ref="aadc88e8e3c200d9a9550fbbd2a984ec9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefNfcStoreLinkRecord::NdefNfcStoreLinkRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create an empty App Store Link record. </p>
<p>Uses the web service hosted at nfcinteractor.com by default for multi-store links. See terms and conditions at nfcinteractor.com </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6caa684ab9b06bf96e35b82d0325864f"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::addAppId" ref="a6caa684ab9b06bf96e35b82d0325864f" args="(const AppStore appStore, const QString &amp;appId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcStoreLinkRecord::addAppId </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a>&#160;</td>
          <td class="paramname"><em>appStore</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>appId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an app id for a specified app store. </p>
<p>If you only add a single app id, the class will generate a direct store link. If you add more than one app store, it will by default use the nfcinteractor.com web service. </p>

</div>
</div>
<a class="anchor" id="a1cba6465d662b8c3ac8e1d84153bc7d2"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::setWebServiceUrl" ref="a1cba6465d662b8c3ac8e1d84153bc7d2" args="(const QUrl &amp;webServiceUrl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcStoreLinkRecord::setWebServiceUrl </td>
          <td>(</td>
          <td class="paramtype">const QUrl &amp;&#160;</td>
          <td class="paramname"><em>webServiceUrl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the web service URL. </p>
<p>The parameter should contain the complete URL. The script will then add the corresponding parameters to the URL. </p>

</div>
</div>
<a class="anchor" id="a527400f58827b59bf4956c87594010a6"></a><!-- doxytag: member="NdefNfcStoreLinkRecord::webServiceUrl" ref="a527400f58827b59bf4956c87594010a6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QUrl NdefNfcStoreLinkRecord::webServiceUrl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the current web service URL. </p>
<p>By default, the web service hosted at nfcinteractor.com is used. See terms and conditions at nfcinteractor.com </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ndefnfcstorelinkrecord_8h_source.html">ndefnfcstorelinkrecord.h</a></li>
<li>ndefnfcstorelinkrecord.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:49 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
